<?php

namespace api\modules\ua\models;

use Yii;
use yii\db\ActiveRecord;

class Ping extends ActiveRecord
{
    public $ping;
    public static function getDb(){return Yii::$app->ua;}
    public static function tableName(){return 'shops_ping';}

    public function fields()
    {
        $fields = parent::fields();
        return $fields;
    }

    //创建
    public function create($uuid)
    {
        $this->uuid        = $uuid;
        $this->save();
    }
}
